﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Matched.ascx.cs"
    Inherits="TCKQKL.FrontEnd.Web.Controls.OrdersMatched" %>
<link href="../styles/data.css" rel="stylesheet" type="text/css" />    
<%@ Import Namespace="TCKQKL.FrontEnd.DataModel" %>
<%@ Import Namespace="TCKQKL.FrontEnd.Config" %>
<style type="text/css">
    .style1
    {
        height: 23px;
    }
</style>
<table class="OrderAlertTableStyle">
    <% if (orderMatchedData != null)
           if (orderMatchedData.Count > 0)
           {%>
    <tr>
        <td class="style1" colspan="8">
            Trade Alert: The following orders are matched.
        </td>
    </tr>
    <tr>
        <th class="InnerHeading">
            Order ID
        </th>
        <th class="InnerHeading">
            Order Date
        </th>
        <th class="InnerHeading">
            Type
        </th>
        <th class="InnerHeading">
            Symbol
        </th>
        <th class="InnerHeading">
            Quantity
        </th>
        <th class="InnerHeading">
            Price</th>
        <th class="InnerHeading">
            Fee</th>
        <th class="InnerHeading">
            Confirm No</th>
    </tr>
    <%for (int i = 0; i < orderMatchedData.Count; i++)
      { %>
    <tr>
        <td class="InnerData">
            <%=orderMatchedData[i].orderID%>
        </td>
        <td class="InnerData">
            <%=orderMatchedData[i].transDate.ToString("dd/MM/yyyy")%>
        </td>
        <td class="InnerData">
            <%=orderMatchedData[i].TransType%>
        </td>
        <td class="InnerData">
            <%=orderMatchedData[i].stockCode%>
        </td>
        <td class="InnerData" style="text-align: right">
            <%=orderMatchedData[i].stockQtty.ToString("N")%>
        </td>
        <td class="InnerData" style="text-align: right">
            <%=orderMatchedData[i].price.ToString("N")%></td>
        <td class="InnerData" style="text-align: right">
            <%=orderMatchedData[i].feeAmount.ToString("N")%></td>
        <td class="InnerData" style="text-align: right">
            <%=orderMatchedData[i].confirmNo%></td>
    </tr>
    <%}%>
    <%}%>
</table>
